<?php 

namespace pmvc\io;

interface Stream {

	public function isEof();

	public function isOpen();

	public function isClosed();

	public function close();

	public function flush();

	public function read($length);
	
	public function write($data, $length=-1);

	public function truncate($size);

	public function forward($length);

	public function rewind($length);

	public function seek($location);

	public function begin();

	public function end();

	public function position();

	public function passThru();

	public function readAll();

}

?>